<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Carte mère: Référence du fichier src/main.c</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Généré par Doxygen 1.7.2 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul class="tablist">
      <li><a href="main.html"><span>Page&#160;principale</span></a></li>
      <li><a href="pages.html"><span>Pages&#160;associées</span></a></li>
      <li><a href="annotated.html"><span>Structures&#160;de&#160;données</span></a></li>
      <li class="current"><a href="files.html"><span>Fichiers</span></a></li>
    </ul>
  </div>
  <div class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Liste&#160;des&#160;fichiers</span></a></li>
      <li><a href="globals.html"><span>Portée&#160;globale</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#define-members">Macros</a> &#124;
<a href="#func-members">Fonctions</a>  </div>
  <div class="headertitle">
<h1>Référence du fichier src/main.c</h1>  </div>
</div>
<div class="contents">
<code>#include &lt;p30f6014a.h&gt;</code><br/>
<code>#include &lt;dsp.h&gt;</code><br/>
<code>#include &lt;uart.h&gt;</code><br/>
<code>#include &lt;stdio.h&gt;</code><br/>
<code>#include &quot;<a class="el" href="init_8h_source.html">init.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="mode__vol_8h_source.html">mode_vol.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="capteurs_8h_source.html">capteurs.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="imu_8h_source.html">imu.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="xbee__comm_8h_source.html">xbee_comm.h</a>&quot;</code><br/>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="define-members"></a>
Macros</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8c.html#ad3f7f424c07fc5aa42b93d6347fca207">DEBUG_COMM</a>&#160;&#160;&#160;1</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Active les tests "basiques" de bon fonctionnement des communications (IMU, capteurs et XBee)  <a href="#ad3f7f424c07fc5aa42b93d6347fca207"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="func-members"></a>
Fonctions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8c.html#a49d976fc697fbaec6a378fdeb4660774">_FOSC</a> (CSW_FSCM_OFF &amp;XT_PLL16)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Oscillateur externe avec PLLx16.  <a href="#a49d976fc697fbaec6a378fdeb4660774"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8c.html#ad515c06f1e515ece323faa50221347f2">_FWDT</a> (WDT_OFF)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Watchdog désactivé  <a href="#ad515c06f1e515ece323faa50221347f2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8c.html#a52bc280178e9b49bede294e11fc2798c">_FBORPOR</a> (PBOR_ON &amp;BORV_20 &amp;PWRT_64 &amp;MCLR_EN)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">MCLR actif.  <a href="#a52bc280178e9b49bede294e11fc2798c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8c.html#a8e73fa3deb6bd0b11f17abb8508f7622">_FGS</a> (CODE_PROT_OFF)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Protection du code désactivée.  <a href="#a8e73fa3deb6bd0b11f17abb8508f7622"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8c.html#a840291bc02cba5474a4cb46a9b9566fe">main</a> (void)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Point d'entrée du programme C.  <a href="#a840291bc02cba5474a4cb46a9b9566fe"></a><br/></td></tr>
</table>
<hr/><h2>Documentation des macros</h2>
<a class="anchor" id="ad3f7f424c07fc5aa42b93d6347fca207"></a><!-- doxytag: member="main.c::DEBUG_COMM" ref="ad3f7f424c07fc5aa42b93d6347fca207" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define DEBUG_COMM&#160;&#160;&#160;1</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Active les tests "basiques" de bon fonctionnement des communications (IMU, capteurs et XBee) </p>

</div>
</div>
<hr/><h2>Documentation des fonctions</h2>
<a class="anchor" id="a52bc280178e9b49bede294e11fc2798c"></a><!-- doxytag: member="main.c::_FBORPOR" ref="a52bc280178e9b49bede294e11fc2798c" args="(PBOR_ON &amp;BORV_20 &amp;PWRT_64 &amp;MCLR_EN)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">_FBORPOR </td>
          <td>(</td>
          <td class="paramtype">PBOR_ON &amp;BORV_20 &amp;PWRT_64 &amp;&#160;</td>
          <td class="paramname"> <em>MCLR_EN</em>&#160;)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>MCLR actif. </p>

</div>
</div>
<a class="anchor" id="a8e73fa3deb6bd0b11f17abb8508f7622"></a><!-- doxytag: member="main.c::_FGS" ref="a8e73fa3deb6bd0b11f17abb8508f7622" args="(CODE_PROT_OFF)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">_FGS </td>
          <td>(</td>
          <td class="paramtype">CODE_PROT_OFF&#160;</td>
          <td class="paramname">&#160;)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Protection du code désactivée. </p>

</div>
</div>
<a class="anchor" id="a49d976fc697fbaec6a378fdeb4660774"></a><!-- doxytag: member="main.c::_FOSC" ref="a49d976fc697fbaec6a378fdeb4660774" args="(CSW_FSCM_OFF &amp;XT_PLL16)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">_FOSC </td>
          <td>(</td>
          <td class="paramtype">CSW_FSCM_OFF &amp;&#160;</td>
          <td class="paramname"> <em>XT_PLL16</em>&#160;)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Oscillateur externe avec PLLx16. </p>

</div>
</div>
<a class="anchor" id="ad515c06f1e515ece323faa50221347f2"></a><!-- doxytag: member="main.c::_FWDT" ref="ad515c06f1e515ece323faa50221347f2" args="(WDT_OFF)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">_FWDT </td>
          <td>(</td>
          <td class="paramtype">WDT_OFF&#160;</td>
          <td class="paramname">&#160;)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Watchdog désactivé </p>

</div>
</div>
<a class="anchor" id="a840291bc02cba5474a4cb46a9b9566fe"></a><!-- doxytag: member="main.c::main" ref="a840291bc02cba5474a4cb46a9b9566fe" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int main </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname">&#160;)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Point d'entrée du programme C. </p>
<p>En mode normal, cette fonction ne fait qu'appeler l'initialisation et lance la boucle de gestion des modes de vol Lorsque DEBUG_COMM est activé, elle envoie les données reçues par les différents modules (capteurs, IMU, Xbee) vers un PC par Xbee. On peut ainsi vérifier le bon fonctionnement des communications entre modules </p>

</div>
</div>
</div>
<hr class="footer"/><address class="footer"><small>Généré le Wed Jan 5 2011 17:04:29 pour Carte mère par&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.2 </small></address>
</body>
</html>
